#include<iostream>
#include<string>
using namespace std;
int main()
{
	string s;
	cin>>s;
	
	int n;
	int a[n],b[n];
	
	for(int i=0;i<s.size();i++)
	{
		if(s[i]>='0'&& s[i]<='9')
		{
			a[i]=s[i];
		}
		else
		{
			b[i]=s[i];
		}
	}
	for(int j=0;j<n ;j++)
	{
		string ss =b[j]*a[j] ;
	}
	
	cout<<ss;
	return 0;
}
